Skip to content

Conversation

23557544
Copy link

I checked issue #2318 and added relevant configuration for Info in the GroupedOpenAPI class. Please merge the code.

@bnasslahsen
Copy link
Collaborator

@23557544,

Could you add the related Test for your PR, so we can merge it ?

@23557544
Copy link
Author

You can add the following configurations to the application.properties file and then start the server for verification.
springdoc.group-configs[0].group=demo
springdoc.group-configs[0].display-name=Example Interfaces
springdoc.group-configs[0].packages-to-scan[0]=cn.codest.server.common
springdoc.group-configs[0].api-info.title=Example Interfaces
springdoc.group-configs[0].api-info.description=List of Example Interfaces
springdoc.group-configs[0].api-info.version=v1.0
springdoc.group-configs[0].api-info.termsOfService=http://localhost:8080/
springdoc.group-configs[0].api-info.license.name=Apache 2.0
springdoc.group-configs[1].group=user
springdoc.group-configs[1].display-name=User Interfaces
springdoc.group-configs[1].packages-to-scan[0]=cn.codest.server.user
springdoc.group-configs[1].api-info.title=User Interfaces
springdoc.group-configs[1].api-info.description=List of User Interfaces
springdoc.group-configs[1].api-info.version=v1.0
springdoc.group-configs[1].api-info.termsOfService=http://localhost:8080/
springdoc.group-configs[1].api-info.license.name=Apache 2.0

@codespearhead
Copy link
Contributor

codespearhead commented Mar 27, 2024

@23557544 Is this a fix for #2318 ? If so, can you link this PR to that issue?

Let us know if you need help writing automated tests.

@bnasslahsen bnasslahsen merged commit 80d8e0c into springdoc:main Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants